Optimal. Leaf size=98 \[ \frac {2 a^{5/2} \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {14 a^3 \tan (c+d x)}{3 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {3860, 4000,
3859, 209, 3877} \begin {gather*} \frac {2 a^{5/2} \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}+\frac {14 a^3 \tan (c+d x)}{3 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a^2 \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 3859
Rule 3860
Rule 3877
Rule 4000
Rubi steps
\begin {align*} \int (a+a \sec (c+d x))^{5/2} \, dx &=\frac {2 a^2 \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{3 d}+\frac {1}{3} (2 a) \int \sqrt {a+a \sec (c+d x)} \left (\frac {3 a}{2}+\frac {7}{2} a \sec (c+d x)\right ) \, dx\\ &=\frac {2 a^2 \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{3 d}+a^2 \int \sqrt {a+a \sec (c+d x)} \, dx+\frac {1}{3} \left (7 a^2\right ) \int \sec (c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {14 a^3 \tan (c+d x)}{3 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{3 d}-\frac {\left (2 a^3\right ) \text {Subst}\left (\int \frac {1}{a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}\\ &=\frac {2 a^{5/2} \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {14 a^3 \tan (c+d x)}{3 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 6.37, size = 360, normalized size = 3.67 \begin {gather*} \frac {\csc ^3\left (\frac {1}{2} (c+d x)\right ) \sec ^5\left (\frac {1}{2} (c+d x)\right ) (a (1+\sec (c+d x)))^{5/2} \sqrt {\frac {1}{1-2 \sin ^2\left (\frac {1}{2} (c+d x)\right )}} \sqrt {1-2 \sin ^2\left (\frac {1}{2} (c+d x)\right )} \left (256 \cos ^4\left (\frac {1}{2} (c+d x)\right ) \, _3F_2\left (\frac {3}{2},2,\frac {7}{2};1,\frac {9}{2};2 \sin ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sin ^6\left (\frac {1}{2} (c+d x)\right )+512 \, _2F_1\left (\frac {3}{2},\frac {7}{2};\frac {9}{2};2 \sin ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sin ^6\left (\frac {1}{2} (c+d x)\right ) \left (2-3 \sin ^2\left (\frac {1}{2} (c+d x)\right )+\sin ^4\left (\frac {1}{2} (c+d x)\right )\right )+\frac {21 \sqrt {2} \text {ArcSin}\left (\sqrt {2} \sqrt {\sin ^2\left (\frac {1}{2} (c+d x)\right )}\right ) \left (15-10 \sin ^2\left (\frac {1}{2} (c+d x)\right )+3 \sin ^4\left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sin ^2\left (\frac {1}{2} (c+d x)\right )}}-14 \sqrt {1-2 \sin ^2\left (\frac {1}{2} (c+d x)\right )} \left (45+30 \sin ^2\left (\frac {1}{2} (c+d x)\right )-31 \sin ^4\left (\frac {1}{2} (c+d x)\right )+12 \sin ^6\left (\frac {1}{2} (c+d x)\right )\right )\right )}{672 d \sec ^{\frac {5}{2}}(c+d x)} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(213\) vs.
\(2(84)=168\).
time = 0.13, size = 214, normalized size = 2.18
method | result | size |
default | \(\frac {\left (-3 \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right )-3 \cos \left (d x +c \right ) \sqrt {2}\, \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right )+16 \cos \left (d x +c \right ) \sin \left (d x +c \right )+2 \sin \left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, a^{2}}{3 d \left (1+\cos \left (d x +c \right )\right ) \cos \left (d x +c \right )}\) | \(214\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 1395 vs.
\(2 (84) = 168\).
time = 0.61, size = 1395, normalized size = 14.23 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.62, size = 310, normalized size = 3.16 \begin {gather*} \left [\frac {3 \, {\left (a^{2} \cos \left (d x + c\right )^{2} + a^{2} \cos \left (d x + c\right )\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right ) + 2 \, {\left (8 \, a^{2} \cos \left (d x + c\right ) + a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{3 \, {\left (d \cos \left (d x + c\right )^{2} + d \cos \left (d x + c\right )\right )}}, -\frac {2 \, {\left (3 \, {\left (a^{2} \cos \left (d x + c\right )^{2} + a^{2} \cos \left (d x + c\right )\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - {\left (8 \, a^{2} \cos \left (d x + c\right ) + a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )\right )}}{3 \, {\left (d \cos \left (d x + c\right )^{2} + d \cos \left (d x + c\right )\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \sec {\left (c + d x \right )} + a\right )^{\frac {5}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 225 vs.
\(2 (84) = 168\).
time = 1.27, size = 225, normalized size = 2.30 \begin {gather*} -\frac {\frac {3 \, \sqrt {-a} a^{3} \log \left (\frac {{\left | 2 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} - 4 \, \sqrt {2} {\left | a \right |} - 6 \, a \right |}}{{\left | 2 \, {\left (\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}\right )}^{2} + 4 \, \sqrt {2} {\left | a \right |} - 6 \, a \right |}}\right ) \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}{{\left | a \right |}} - \frac {2 \, {\left (7 \, \sqrt {2} a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right ) \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 9 \, \sqrt {2} a^{4} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{{\left (a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a\right )} \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a}}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________